* {
  user-select: none;
  -webkit-user-select: none;
}

.grayText {
  color: #999999;
}

nz-select {
  width: 100px;
  margin-right: 16px;
}

nz-switch {
  margin-right: 8px;
}

[nz-radio], [nz-checkbox] {
  margin-right: 8px;
}

.image {
  width: 100px;
  height: 100px;
  display: inline-block;
  position: relative;
  border: 1px solid rgba(0, 0, 0, .1);
  margin-right: 8px;

  .btnRow {
    position: absolute;
    height: 100%;
    width: 100%;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;

    i:first-child {
      margin-right: 8px;
    }
  }

  &:hover {
    .btnRow {
      display: flex;
    }
  }

  img {
    width: 98px;
    height: 98px;
  }
}

.uploadFile {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dotted rgba(0, 0, 0, .1);

  i {
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .6;
    transform: translate(-50%, -50%);
  }

  input {
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}

.flexRow {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

.textLengthTip {
  color: #999999;
  position: absolute;
  right: 8px;
  bottom: 0;
}

.templateNameRow {
  width: 800px;
  margin-left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  position: relative;

  input {
    width: 800px;
    height: 40px;
    font-size: 26px;
    text-align: center;
  }
}

.templateRemarkRow {
  margin-top: 8px;
  width: 800px;
  margin-left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  position: relative;

  textarea {
    width: 800px;
  }
}

.rowDragIcon {
  width: 30px;
  height: 30px;
  position: absolute;
  left: 8px;
  top: 8px
}

.optionDragIcon {
  width: 20px;
  height: 20px;
  position: absolute;
  left: -30px;
}

.questionContent {
  margin-top: 8px;
}

.noEdit {
  .editBtnArea {
    width: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 8px;
    top: 8px;
    display: none;
  }

  &:hover {
    background: rgba(0, 0, 0, .01);

    .editBtnArea {
      display: flex;
    }
  }
}

.questionRow {
  min-height: 100px;
  background: white;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 4px;
  position: relative;
  padding: 8px 100px;
  margin-bottom: 8px;
}

.nameRow {
  min-height: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;

  .name {
    margin-right: 8px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jump {
    display: inline-block;
    position: absolute;
    left: 400px;
  }

  .optionLink {
    .name {
      display: inline-block;
    }

    .linkSelect {
      width: 200px;
      display: inline-block;
    }
  }
}

.optionList {
  margin-top: 8px;
}

.addOptionBtn {
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-top: 16px;
  color: #00b7ee;

  &:hover {
    cursor: pointer;
  }
}

.addQuestion {
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-top: 16px;
  font-size: 20px;
  color: #00b7ee;

  &:hover {
    cursor: pointer;
  }
}

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  0 8px 10px 1px rgba(0, 0, 0, 0.14),
  0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.example-box:last-child {
  border: none;
}

.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

[nz-carousel-content] {
  text-align: center;
  height: 470px;
  line-height: 470px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #fff;
  overflow: hidden;
}

.optionRow {
  margin-top: 8px;

  label {
    i {
      margin-right: 8px
    }
  }
}

.questionModalQ {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  span {
    margin-right: 8px;
  }

  nz-select {
    width: 200px;
  }
  a {
    color: #1890ff;
    margin-right: 8px;
  }
}
